import React,{forwardRef} from 'react'
import {Form,Input} from "antd"
const  NewsForm = forwardRef((props,ref)=> {
  return (
      <Form
          ref={ref}
    layout="vertical"
>
    <Form.Item
        name="title"
        label="标题"
        rules={[{ required: true, message: '请输入标题' }]}
    >           
        <Input />
    </Form.Item>
    <Form.Item
        name="content"
        label="内容"
        rules={[{ required: true, message: '请输入内容' }]}
    >           
        <Input />
    </Form.Item>
    <Form.Item
        name="create_time"
        label="创建时间"
        rules={[{ required: true, message: '请输入创建时间' }]}
    >           
       <Input />
    </Form.Item>
    <Form.Item
        name="imgUrl"
        label="图片"
        rules={[{ required: true, message: '请添加图片' }]}
    >           
       <Input />
    </Form.Item>
</Form>
  )
})

export default  NewsForm
